package 笔试.大华.质因数分解;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        StringBuilder builder = new StringBuilder();
        long n = scan.nextLong();
        long num = n;
        for (long i = 2L; i <= Math.sqrt(n); i++) {
            while (num % i == 0 && judge(i)) {
                builder.append(i);
                num /= i;
                if (num != 1) { //最后一个数字不用拼接*
                    builder.append("*");
                }
            }
        }
        System.out.println(builder);
    }

    //判断是否是质数
    public static boolean judge(long n) {
        if (n == 0 || n == 1) {
            return false;
        }
        for (long i = 2L; i <= Math.sqrt(n); i++) {
            if (n % i == 0) {
                return false;
            }
        }
        return true;
    }
}
